package com.woniu.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "zy_addr")
public class Addr implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 详细地址
     */
    @TableField(value = "detail")
    private String detail;

    /**
     * 建立时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 省份id
     */
    @TableField(value = "province_id")
    private Integer provinceId;

    /**
     * 是否默认地址 1：默认
     */
    @TableField(value = "default_address")
    private Integer defaultAddress;

    /**
     * 状态 1：存在 0：删除
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 收货人电话
     */
    @TableField(value = "address_tel")
    private String addressTel;

    /**
     * 收货人姓名
     */
    @TableField(value = "address_name")
    private String addressName;

    /**
     * 省份
     */
    @TableField(value = "province")
    private String province;

    /**
     * 城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 区/县
     */
    @TableField(value = "county")
    private String county;

    @TableField(value = "latitude")
    private BigDecimal latitude;

    @TableField(value = "longitude")
    private BigDecimal longitude;

    private static final long serialVersionUID = 1L;
}